/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
// pdecbtn.hpp - PegDecoratedButton. Derived button that supports both
//               text and a bitmap.
//
// Author: Jim DeLisle
//
// Copyright (c) 1997-2000 Swell Software
//              All Rights Reserved.
//
// Unauthorized redistribution of this source code, in whole or part,
// without the express written permission of Swell Software
// is strictly prohibited.
//
// Notes:
//
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/

#ifndef _PEGDECBUTTON_
#define _PEGDECBUTTON_

#define PEG_BMP_TXT_PADDING    2

class PegDecoratedButton : public PegButton
{
    public:
        PegDecoratedButton(const PegRect &Size, PEGINT StringId,
                           PEGINT BitmapId, PEGUSHORT Id = 0,
                           PEGULONG Style = AF_ENABLED,
                           PEGBOOL FlyOver = FALSE);

        PegDecoratedButton(const PEGCHAR *pText, const PegRect &Size, 
                           PEGINT BitmapId, PEGUSHORT Id = 0,
                           PEGULONG Style = TT_COPY|AF_ENABLED,
                           PEGBOOL FlyOver = FALSE);

        virtual ~PegDecoratedButton() {}

        virtual void Draw(const PegRect &Invalid);
        virtual void SetBitmap(PEGINT BitmapId) { mBitmapId = BitmapId; }
        virtual PEGINT GetBitmap(void) { return mBitmapId; }

    protected:
        PEGINT mBitmapId;

};

#endif // _PEGDECBUTTON_


